Skip to content

Ensure that json is returned for /nominatim-update endpoints - #1136

Merged
lonvia merged 1 commit into
komoot:masterfrom
lonvia:serve-proper-json-on-update-endpoints
Sep 23, 2026
Merged

lonvia merged 1 commit into
komoot:masterfrom
lonvia:serve-proper-json-on-update-endpoints

Conversation

@lonvia

@lonvia lonvia commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

Javalin's json() function quietly assumes that its parameter is already json when it is a string, which is somewhat unexpected and caused the answer to be returned as text instead of a string for the /nominatim-update endpoints. This was an unintended regression.

Convert the strings to json strings by hand.

Fixes #1135.

@lonvia
lonvia merged commit fb4ce69 into komoot:master Sep 23, 2026
5 checks passed
@lonvia
lonvia deleted the serve-proper-json-on-update-endpoints branch September 23, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong Content-Type on /nominatim-update endpoints

1 participant